<?php
/**
 * My/View/Helper/Placeholder.php
 * allow quick checking of container existence
 */
class My_View_Helper_Placeholder
    extends Zend_View_Helper_Placeholder
{
    public function placeholder($name, $checkOnly=false)
    {
        if ($checkOnly) {
          return $this->__isset($name);
        }
    }
    public function __isset($container)
    {
        return $this->getRegistry()->containerExists($container);
    }
}